<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:63:"D:\Wamp\wamp64\www\canny/app/admin\view\column\column_edit.html";i:1533377735;s:66:"D:\Wamp\wamp64\www\canny/app/admin\view\layout\edit_btn_group.html";i:1531444261;}*/ ?>
<form action="<?php echo url(); ?>" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>栏目名称</label>
              <span class=""></span>
              <input class="form-control" name="name" placeholder="请输入栏目名称" value="<?php echo (isset($info['name']) && ($info['name'] !== '')?$info['name']:''); ?>" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>分类</label>
              <span class="">（栏目分类）</span>
                <select name="pid" class="form-control">
                    <option value="0">顶级栏目</option>
                    <?php if(is_array($column_category_list) || $column_category_list instanceof \think\Collection || $column_category_list instanceof \think\Paginator): $i = 0; $__LIST__ = $column_category_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <option value="<?php echo $vo['id']; ?>"><?php echo $vo['name']; ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    

                </select>
            </div>
          </div>
            
        <div class="col-md-6">
            <div class="form-group">
              <label>栏目排序</label>
              <span class=""></span>
                <input class="form-control" name="sort" placeholder="请输入序号" value="<?php echo (isset($info['sort']) && ($info['sort'] !== '')?$info['sort']:0); ?>" type="text">
            </div>
        </div>
            
        <div class="col-md-6">
            <div class="form-group">
              <label>栏目URL</label>
              <span class=""></span>
                <input class="form-control" name="url" placeholder="请输入序号" value="<?php echo (isset($info['url']) && ($info['url'] !== '')?$info['url']:0); ?>" type="text">
            </div>
        </div>
            
        <div class="col-md-6">
            <div class="form-group">
                <label>未点击时图片图标</label>
                <span class="">（建议上传 93 × 75 的图片,顶级栏目可不上传）</span>
                <br/>
                <?php $hide_cover_id = (isset($info['hide_cover_id']) && ($info['hide_cover_id'] !== '')?$info['hide_cover_id']:'0'); ?>
                <?php echo widget('file/index', ['name' => 'hide_cover_id', 'value' => $hide_cover_id, 'type' => 'img']); ?>
            </div>
        </div>
            
        <div class="col-md-6">
            <div class="form-group">
                <label>点击时栏目图标</label>
                <span class="">（建议上传 93 × 75 的图片,顶级栏目可不上传）</span>
                <br/>
                <?php $show_cover_id = (isset($info['show_cover_id']) && ($info['show_cover_id'] !== '')?$info['show_cover_id']:'0'); ?>
                <?php echo widget('file/index', ['name' => 'show_cover_id', 'value' => $show_cover_id, 'type' => 'img']); ?>
            </div>
        </div>
            
        <div class="col-md-6">
           <div class="form-group">
               <label>是否启用</label>
               <span>（若启用则在前台网页栏目栏中显示）</span>
               <div>
                   <label class="margin-r-5"><input type="radio" name="status" value="1"> 是</label>
                   <label><input type="radio" name="status"  value="0"> 否</label>
               </div>
           </div>
        </div>   
            
            
      <div class="box-footer">
          
        <input type="hidden" name="id" value="<?php echo (isset($info['id']) && ($info['id'] !== '')?$info['id']:'0'); ?>"/>
        
        <button  type="submit" class="btn ladda-button ajax-post" data-style="slide-up" target-form="form_single">
    <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
</button>

<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
        
      </div>
        
      </div>
      </div>
</form>
<script type="text/javascript">
    
    ob.setValue("status", <?php echo (isset($info['status']) && ($info['status'] !== '')?$info['status']:1); ?>);
    ob.setValue("pid", <?php echo (isset($info['pid']) && ($info['pid'] !== '')?$info['pid']:0); ?>);
       
</script>